package com.dawn.module.cms.controller.app.article.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "用户 APP - 文章新增/修改 Request VO")
@Data
public class AppArticleSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3489")
    private Long id;

    @Schema(description = "文章标题")
    private String title;

    @Schema(description = "文章描述", example = "你说的对")
    private String description;

    @Schema(description = "标签")
    private String tags;

    @Schema(description = "文章内容")
    private String content;

    @Schema(description = "html的content")
    private String contentFormat;

    @Schema(description = "分类类别", example = "9597")
    private Long categoryId;

    @Schema(description = "分类类别Key")
    private String categoryKey;

    @Schema(description = "发布状态")
    private Integer publish;

    @Schema(description = "是否置顶")
    private Integer topping;

    @Schema(description = "发布时间")
    private LocalDateTime publishTime;

    @Schema(description = "封面图")
    private String coverImg;

    @Schema(description = "阅读次数")
    private Integer views;

    @Schema(description = "是否支持报名")
    private Integer supportSign;

    @Schema(description = "来源")
    private String source;

    @Schema(description = "发布人")
    private String publishUser;

    @Schema(description = "链接地址", example = "https://www.ynzykj.net")
    private String linkUrl;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

}